import request from "@/utils/request";

//查询纸张出库单列表
export function getOutboundtInfoList(params) {
    return request({
        url: "/MesCuttingOutbound/list",
        method: "get",
        params:params,
    });
}
// 新增或编辑纸张出库单
export function addOutboundInfo(data) {
    return request({
        url: "/MesCuttingOutbound/add",
        method: "post",
        data,
    });
}

// 获取纸张出库单详细信息
export function getOutboundInfo(id, params) {
    return request({
        url: `/MesCuttingOutbound/${id}`,
        method: "get",
        params,
    });
}
// 删除纸张出库单
export function delOutboundInfo(data) {
    return request({
        url: `/MesCuttingOutbound/deleteById`,
        method: "post",
        data
    });
}

//查询纸张出库单列表
export function getCuttingOutboundDetailList(params) {
    return request({
        url: "/MesCuttingOutbound/Detail",
        method: "get",
        params:params,
    });
}

// 更改纸张出库单状态
export function updateStatus(data) {
    return request({
        url: `/MesCuttingOutbound/updateStatus`,
        method: "post",
        data,
    });
}
